﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Model
{
    public class  BMenu
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        //[JsonIgnore]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int Pid       {get;set; }
        /// <summary>
        /// 菜单路径
        /// </summary>
        public string Path      {get;set; }
        /// <summary>
        /// 菜单标题
        /// </summary>
        public string Title     {get;set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string Icon      {get;set;}
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        private DateTime updatedAt = DateTime.Now;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdatedAt { get { return updatedAt; } set { updatedAt = value; } }
        /// <summary>
        /// 层级
        /// </summary>
        public string Lever     {get;set; }
        /// <summary>
        /// 操作标识
        /// </summary>
        public string Authority {get;set;}

    }
}
